﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="QuanLySliderAnh.aspx.cs" Inherits="DM.Web.Admin.QuanLyChucNangKhac.QuanLySliderAnh" Title="Công ty cổ phần Đường Man - Duong Malt JSC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Quản lý slide ảnh</h1>
<asp:GridView ID="GridViewSlideAnh" runat="server" AllowPaging="True" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="urlImage" PageSize="5" AutoGenerateColumns="False" OnPageIndexChanging="GridViewSlideAnh_PageIndexChanging">
    <RowStyle ForeColor="#000066" />
    <FooterStyle BackColor="White" ForeColor="#000066" />
    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <table width="100%" style="border:none;">
                    <tr>
                        <td>
                            <img src='<%#"../../Photos/Slide/"+Eval("urlImage")%>' alt="Hình ảnh DuongMalt Company" width="300" height="200" style="border:1px solid #f1f1f1; margin:10px" />
                        </td>
                        <td valign="middle" align="center" style="width: 20%">
                            <asp:Button ID="btnDelete" runat="server" Width="100px" OnClientClick="return confirm('Bạn có chắc chắn xóa ảnh này không')" Text="Xóa " OnClick="btnDelete_Click" />
                        </td>
                    </tr>
                </table>
            </ItemTemplate>            
        </asp:TemplateField>
    </Columns>
</asp:GridView>


<table style="border:none;">
    <tr>
        <td>
            <asp:FileUpload ID="fileUpLoadImage" runat="server" Width="250px" />
        </td>
        <td>
            <asp:Button ID="btnUpLoad" runat="server" Width="100px" Text="Upload" OnClick="btnUpLoad_Click" />
        </td>
    </tr>
</table>
    
</asp:Content>
